package webservice;

import org.apache.axiom.om.OMAbstractFactory;
import org.apache.axiom.om.OMElement;
import org.apache.axiom.om.OMFactory;
import org.apache.axiom.om.OMNamespace;

public class QueryService {
	public OMElement query(OMElement in){
		String key = in.getText();
		OMFactory factory = OMAbstractFactory.getOMFactory();
		OMNamespace omNs = factory.createOMNamespace("http://www.bjut.edu.cn", "bjut");
		OMElement response = factory.createOMElement("queryResponse",omNs);
		response.setText(Query.query(in.getText()));
		return response;
	}
}
